Shadow File Rewrite

- No longer writes shadow files based on TDB onChange trigger.
- Addressed bug whereby adding a recurring task trigger a shadow
  file rewrite, which in turn performs trigger another rewrite...
This commit is contained in:
Paul Beckingham 2009-03-02 23:47:41 -05:00
parent 6e956b45ad
commit 1e70400143
5 changed files with 72 additions and 108 deletions

View file

@ -51,21 +51,17 @@ public:
int gc ();
int nextId ();
void onChange (void (*)());
private:
bool lock (FILE*) const;
bool overwritePending (std::vector <T>&);
bool writePending (const T&);
bool writeCompleted (const T&);
bool readLockedFile (const std::string&, std::vector <std::string>&) const;
void dbChanged ();
private:
std::string mPendingFile;
std::string mCompletedFile;
int mId;
std::vector <void (*)()> mOnChange;
};
#endif