GUI: perform up to date check before previewing a subdoc. This is for example to avoid showing the wrong message if a mail folder has been compacted
This commit is contained in:
@@ -282,7 +282,7 @@ void FsIndexer::setlocalfields(Rcl::Doc& doc)
|
||||
}
|
||||
}
|
||||
|
||||
static void makesig(const struct stat *stp, string& out)
|
||||
void FsIndexer::makesig(const struct stat *stp, string& out)
|
||||
{
|
||||
char cbuf[100];
|
||||
sprintf(cbuf, OFFTPC "%ld", stp->st_size, (long)stp->RCL_STTIME);
|
||||
|
||||
@@ -24,10 +24,10 @@ using std::list;
|
||||
|
||||
#include "indexer.h"
|
||||
#include "fstreewalk.h"
|
||||
#include "rcldb.h"
|
||||
|
||||
class DbIxStatusUpdater;
|
||||
class FIMissingStore;
|
||||
struct stat;
|
||||
|
||||
/** Index selected parts of the file system
|
||||
|
||||
@@ -69,6 +69,9 @@ class FsIndexer : public FsTreeWalkerCB {
|
||||
FsTreeWalker::Status
|
||||
processone(const string &fn, const struct stat *, FsTreeWalker::CbFlag);
|
||||
|
||||
/** Make signature for file up to date checks */
|
||||
static void makesig(const struct stat *stp, string& out);
|
||||
|
||||
private:
|
||||
FsTreeWalker m_walker;
|
||||
RclConfig *m_config;
|
||||
|
||||
Reference in New Issue
Block a user