fix(server): Fix a crash when running "client list" command. (#179)
Also, enhance release script to apply linker optimizations when building the binaries. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
605b1fd217
commit
448d065647
|
@ -290,7 +290,9 @@ string Connection::GetClientInfo() const {
|
||||||
absl::StrAppend(&res, " fd=", lsb->native_handle(), " name=", name_);
|
absl::StrAppend(&res, " fd=", lsb->native_handle(), " name=", name_);
|
||||||
absl::StrAppend(&res, " age=", now - creation_time_, " idle=", now - last_interaction_);
|
absl::StrAppend(&res, " age=", now - creation_time_, " idle=", now - last_interaction_);
|
||||||
absl::StrAppend(&res, " phase=", phase_, " ");
|
absl::StrAppend(&res, " phase=", phase_, " ");
|
||||||
absl::StrAppend(&res, cc_->GetContextInfo());
|
if (cc_) {
|
||||||
|
absl::StrAppend(&res, cc_->GetContextInfo());
|
||||||
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
|
@ -739,10 +739,10 @@ void GenericFamily::Register(CommandRegistry* registry) {
|
||||||
<< CI{"RENAME", CO::WRITE, 3, 1, 2, 1}.HFUNC(Rename)
|
<< CI{"RENAME", CO::WRITE, 3, 1, 2, 1}.HFUNC(Rename)
|
||||||
<< CI{"RENAMENX", CO::WRITE, 3, 1, 2, 1}.HFUNC(RenameNx)
|
<< CI{"RENAMENX", CO::WRITE, 3, 1, 2, 1}.HFUNC(RenameNx)
|
||||||
<< CI{"SELECT", kSelectOpts, 2, 0, 0, 0}.HFUNC(Select)
|
<< CI{"SELECT", kSelectOpts, 2, 0, 0, 0}.HFUNC(Select)
|
||||||
<< CI{"SCAN", CO::READONLY | CO::FAST, -2, 0, 0, 0}.HFUNC(Scan)
|
<< CI{"SCAN", CO::READONLY | CO::FAST | CO::LOADING, -2, 0, 0, 0}.HFUNC(Scan)
|
||||||
<< CI{"TTL", CO::READONLY | CO::FAST, 2, 1, 1, 1}.HFUNC(Ttl)
|
<< CI{"TTL", CO::READONLY | CO::FAST, 2, 1, 1, 1}.HFUNC(Ttl)
|
||||||
<< CI{"PTTL", CO::READONLY | CO::FAST, 2, 1, 1, 1}.HFUNC(Pttl)
|
<< CI{"PTTL", CO::READONLY | CO::FAST, 2, 1, 1, 1}.HFUNC(Pttl)
|
||||||
<< CI{"TYPE", CO::READONLY | CO::FAST, 2, 1, 1, 1}.HFUNC(Type)
|
<< CI{"TYPE", CO::READONLY | CO::FAST | CO::LOADING, 2, 1, 1, 1}.HFUNC(Type)
|
||||||
<< CI{"UNLINK", CO::WRITE, -2, 1, -1, 1}.HFUNC(Del);
|
<< CI{"UNLINK", CO::WRITE, -2, 1, -1, 1}.HFUNC(Del);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ NAME="dragonfly-${ARCH}"
|
||||||
|
|
||||||
pwd
|
pwd
|
||||||
./helio/blaze.sh -release -DBoost_USE_STATIC_LIBS=ON -DOPENSSL_USE_STATIC_LIBS=ON \
|
./helio/blaze.sh -release -DBoost_USE_STATIC_LIBS=ON -DOPENSSL_USE_STATIC_LIBS=ON \
|
||||||
-DENABLE_GIT_VERSION=ON -DWITH_UNWIND=OFF
|
-DENABLE_GIT_VERSION=ON -DWITH_UNWIND=OFF -DHELIO_RELEASE_FLAGS="-flto"
|
||||||
|
|
||||||
cd build-opt
|
cd build-opt
|
||||||
ninja dragonfly && ldd dragonfly
|
ninja dragonfly && ldd dragonfly
|
||||||
|
|
Loading…
Reference in New Issue