Changeset 2631 for box/trunk/bin/bbackupd/BackupClientInodeToIDMap.h
- Timestamp:
- 22/02/2010 22:10:04 (2 years ago)
- File:
-
- 1 edited
-
box/trunk/bin/bbackupd/BackupClientInodeToIDMap.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/BackupClientInodeToIDMap.h
r217 r2631 9 9 10 10 #ifndef BACKUPCLIENTINODETOIDMAP_H 11 #define BACKUPCLIENTINODETOIDMAP_ _H11 #define BACKUPCLIENTINODETOIDMAP_H 12 12 13 13 #include <sys/types.h> … … 16 16 #include <utility> 17 17 18 // Use in memory implementation if there isn't access to the Berkely DB on this platform19 #ifndef HAVE_DB20 #define BACKIPCLIENTINODETOIDMAP_IN_MEMORY_IMPLEMENTATION21 #endif22 23 18 // avoid having to include the DB files when not necessary 24 19 #ifndef BACKIPCLIENTINODETOIDMAP_IMPLEMENTATION 25 #ifdef BERKELY_V4 26 class Db; 27 #else 28 class DB; 29 #endif 20 class DEPOT; 30 21 #endif 31 22 … … 56 47 57 48 private: 58 #ifdef BACKIPCLIENTINODETOIDMAP_IN_MEMORY_IMPLEMENTATION59 std::map<InodeRefType, std::pair<int64_t, int64_t> > mMap;60 #else61 49 bool mReadOnly; 62 50 bool mEmpty; 63 #ifdef BERKELY_V4 64 Db *dbp; // c++ style implimentation 65 #else 66 DB *dbp; // C style interface, use notation from documentation 67 #endif // BERKELY_V4 68 #endif // BACKIPCLIENTINODETOIDMAP_IN_MEMORY_IMPLEMENTATION 51 std::string mFilename; 52 DEPOT *mpDepot; 69 53 }; 70 54 71 #endif // BACKUPCLIENTINODETOIDMAP_ _H55 #endif // BACKUPCLIENTINODETOIDMAP_H 72 56 73 57
Note: See TracChangeset
for help on using the changeset viewer.
