mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
chore: move QList::Node definition into dragonfly codebase (#4547)
Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
8c937ebf37
commit
bff9cf6923
4 changed files with 130 additions and 75 deletions
|
@ -365,7 +365,7 @@ error_code RdbSerializer::SaveListObject(const PrimeValue& pv) {
|
|||
} else {
|
||||
DCHECK_EQ(pv.Encoding(), kEncodingQL2);
|
||||
QList* ql = reinterpret_cast<QList*>(pv.RObjPtr());
|
||||
node = ql->Head();
|
||||
node = (const quicklistNode*)ql->Head(); // We rely on common ABI for Q2 and Q1 nodes.
|
||||
len = ql->node_count();
|
||||
}
|
||||
RETURN_ON_ERR(SaveLen(len));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue