diff options
Diffstat (limited to 'util/comparator.cc')
-rw-r--r-- | util/comparator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/comparator.cc b/util/comparator.cc index 4b7b5724ef..6cc319242e 100644 --- a/util/comparator.cc +++ b/util/comparator.cc @@ -66,7 +66,7 @@ class BytewiseComparatorImpl : public Comparator { }; } // namespace -static port::OnceType once = LEVELDB_ONCE_INIT; +static port::OnceType once_comparator = LEVELDB_ONCE_INIT; static const Comparator* bytewise; static void InitModule() { @@ -74,7 +74,7 @@ static void InitModule() { } const Comparator* BytewiseComparator() { - port::InitOnce(&once, InitModule); + port::InitOnce(&once_comparator, InitModule); return bytewise; } |