mirror of https://gitee.com/bigwinds/arangodb
fix invalid logical expression
This commit is contained in:
parent
47cd7673d1
commit
dea26c02a9
|
@ -106,7 +106,7 @@ class MMFilesDocumentPosition {
|
||||||
// the _fid value is set, and to a datafile otherwise
|
// the _fid value is set, and to a datafile otherwise
|
||||||
inline bool pointsToWal() const noexcept {
|
inline bool pointsToWal() const noexcept {
|
||||||
// check whether the WAL bit is set
|
// check whether the WAL bit is set
|
||||||
return ((_fid & arangodb::DatafileHelper::WalFileBitmask()) == 1);
|
return ((_fid & arangodb::DatafileHelper::WalFileBitmask()) != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline operator bool() const noexcept {
|
inline operator bool() const noexcept {
|
||||||
|
|
Loading…
Reference in New Issue