mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 07:30:54 +00:00
Add LIBRARY back to make dbg
This commit is contained in:
parent
745c181e20
commit
d4b789fdee
2
Makefile
2
Makefile
|
@ -144,7 +144,7 @@ endif # PLATFORM_SHARED_EXT
|
||||||
|
|
||||||
all: $(LIBRARY) $(PROGRAMS)
|
all: $(LIBRARY) $(PROGRAMS)
|
||||||
|
|
||||||
dbg: $(PROGRAMS)
|
dbg: $(LIBRARY) $(PROGRAMS)
|
||||||
|
|
||||||
# Will also generate shared libraries.
|
# Will also generate shared libraries.
|
||||||
release:
|
release:
|
||||||
|
|
|
@ -489,7 +489,7 @@ DBImpl::SuperVersion* DBImpl::SuperVersion::Ref() {
|
||||||
|
|
||||||
bool DBImpl::SuperVersion::Unref() {
|
bool DBImpl::SuperVersion::Unref() {
|
||||||
assert(refs > 0);
|
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;
|
return refs.fetch_sub(1, std::memory_order_relaxed) == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue