diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-12-12 23:36:25 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-12-12 23:36:25 +0000 |
commit | 20a8c39aa25d454a3fa142f125003ad242d73ea0 (patch) | |
tree | cfb6d937c300f04e455de1845d18f62e594ce713 /lib/backupstore/BackupStoreContext.h | |
parent | 4220d1bde508875d96036f04a1c62fab4742733b (diff) |
Log the account name with connections, disconnections and statistics, requested by Pete Jalajas.
Diffstat (limited to 'lib/backupstore/BackupStoreContext.h')
-rw-r--r-- | lib/backupstore/BackupStoreContext.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/backupstore/BackupStoreContext.h b/lib/backupstore/BackupStoreContext.h index edd5d198..7388f753 100644 --- a/lib/backupstore/BackupStoreContext.h +++ b/lib/backupstore/BackupStoreContext.h @@ -15,6 +15,7 @@ #include <memory> #include "autogen_BackupProtocol.h" +#include "BackupStoreInfo.h" #include "BackupStoreRefCountDatabase.h" #include "NamedLock.h" #include "Message.h" @@ -22,7 +23,6 @@ class BackupStoreDirectory; class BackupStoreFilename; -class BackupStoreInfo; class IOStream; class BackupProtocolMessage; class StreamableMemBlock; @@ -80,6 +80,14 @@ public: void LoadStoreInfo(); void SaveStoreInfo(bool AllowDelay = true); const BackupStoreInfo &GetBackupStoreInfo() const; + const std::string GetAccountName() + { + if(!mapStoreInfo.get()) + { + return "Unknown"; + } + return mapStoreInfo->GetAccountName(); + } // Client marker int64_t GetClientStoreMarker(); |