diff options
Diffstat (limited to 'db/storage.h')
-rw-r--r-- | db/storage.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/db/storage.h b/db/storage.h index 3bd70604118..dd15a38df8e 100644 --- a/db/storage.h +++ b/db/storage.h @@ -30,6 +30,12 @@ public: DiskLoc(const DiskLoc& l) { fileNo=l.fileNo; ofs=l.ofs; } + bool questionable() { + return ofs < -1 || + fileNo < -1 || + fileNo > 20; + } + bool isNull() const { return ofs == NullOfs; } void Null() { fileNo = -1; ofs = NullOfs; } void setInvalid() { fileNo = -2; } |