mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 17:15:16 -04:00
fixes for message clean-up, code now working.
can be enabled with #define GXS_CLEAN_UP, default message store period set to 1 day, cleaned every 3 minutes. Does not comply fully with spec yet (does not use msg not delete flag) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6267 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
263c15d6bd
commit
3ed2e471b6
4 changed files with 52 additions and 15 deletions
|
@ -37,8 +37,9 @@
|
|||
#include "rsnxsobserver.h"
|
||||
#include "retroshare/rsgxsservice.h"
|
||||
#include "serialiser/rsnxsitems.h"
|
||||
#include "rsgxsutil.h"
|
||||
|
||||
#define DEFAULT_MSG_STORE_PERIOD 60*60 // 1 hour
|
||||
#define DEFAULT_MSG_STORE_PERIOD 60*60*24 // 1 day
|
||||
|
||||
template<class GxsItem, typename Identity = std::string>
|
||||
class GxsPendingItem
|
||||
|
@ -698,6 +699,10 @@ private:
|
|||
|
||||
const uint32_t MESSAGE_STORE_PERIOD;
|
||||
|
||||
bool mCleaning;
|
||||
time_t mLastClean;
|
||||
RsGxsMessageCleanUp* mMsgCleanUp;
|
||||
|
||||
private:
|
||||
|
||||
std::vector<RsGxsNotify*> mChanges;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue