Ignore:
Timestamp:
22/02/2010 22:10:04 (2 years ago)
Author:
chris
Message:

Remove all references to bdb databases, use QDBM instead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/BackupClientInodeToIDMap.h

    r217 r2631  
    99 
    1010#ifndef BACKUPCLIENTINODETOIDMAP_H 
    11 #define BACKUPCLIENTINODETOIDMAP__H 
     11#define BACKUPCLIENTINODETOIDMAP_H 
    1212 
    1313#include <sys/types.h> 
     
    1616#include <utility> 
    1717 
    18 // Use in memory implementation if there isn't access to the Berkely DB on this platform 
    19 #ifndef HAVE_DB 
    20         #define BACKIPCLIENTINODETOIDMAP_IN_MEMORY_IMPLEMENTATION 
    21 #endif 
    22  
    2318// avoid having to include the DB files when not necessary 
    2419#ifndef BACKIPCLIENTINODETOIDMAP_IMPLEMENTATION 
    25 #ifdef BERKELY_V4 
    26         class Db; 
    27 #else 
    28         class DB; 
    29 #endif 
     20        class DEPOT; 
    3021#endif 
    3122 
     
    5647 
    5748private: 
    58 #ifdef BACKIPCLIENTINODETOIDMAP_IN_MEMORY_IMPLEMENTATION 
    59         std::map<InodeRefType, std::pair<int64_t, int64_t> > mMap; 
    60 #else 
    6149        bool mReadOnly; 
    6250        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; 
    6953}; 
    7054 
    71 #endif // BACKUPCLIENTINODETOIDMAP__H 
     55#endif // BACKUPCLIENTINODETOIDMAP_H 
    7256 
    7357 
Note: See TracChangeset for help on using the changeset viewer.