From d4b789fdeea1577a10c6b0de52286d43b7a3402f Mon Sep 17 00:00:00 2001 From: Kai Liu Date: Mon, 10 Feb 2014 20:11:19 -0800 Subject: [PATCH] Add LIBRARY back to `make dbg` --- Makefile | 2 +- db/db_impl.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7d40bb537..64a29cf85 100644 --- a/Makefile +++ b/Makefile @@ -144,7 +144,7 @@ endif # PLATFORM_SHARED_EXT all: $(LIBRARY) $(PROGRAMS) -dbg: $(PROGRAMS) +dbg: $(LIBRARY) $(PROGRAMS) # Will also generate shared libraries. release: diff --git a/db/db_impl.cc b/db/db_impl.cc index ac0d8051f..4bd91de85 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -489,7 +489,7 @@ DBImpl::SuperVersion* DBImpl::SuperVersion::Ref() { bool DBImpl::SuperVersion::Unref() { assert(refs > 0); - // fetch_sub returns the previous value of ref + // fetch_sub returns the previous value of yoeref return refs.fetch_sub(1, std::memory_order_relaxed) == 1; }