Move MAX_VERSION to FDBTypes.h

This commit is contained in:
Meng Xu 2020-04-17 18:38:11 -07:00
parent 916d361587
commit 82ae82c98f
2 changed files with 1 additions and 3 deletions

View File

@ -416,7 +416,7 @@ typedef Standalone<KeyRangeRef> KeyRange;
typedef Standalone<KeyValueRef> KeyValue;
typedef Standalone<struct KeySelectorRef> KeySelector;
enum { invalidVersion = -1, latestVersion = -2 };
enum { invalidVersion = -1, latestVersion = -2, MAX_VERSION = std::numeric_limits<int64_t>::max() };
inline Key keyAfter( const KeyRef& key ) {
if(key == LiteralStringRef("\xff\xff"))

View File

@ -38,8 +38,6 @@
#include "flow/actorcompiler.h" // has to be last include
#define MAX_VERSION (std::numeric_limits<int64_t>::max())
// RestoreConfig copied from FileBackupAgent.actor.cpp
// We copy RestoreConfig instead of using (and potentially changing) it in place
// to avoid conflict with the existing code.