chore: move QList::Node definition into dragonfly codebase (#4547)

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2025-02-02 21:25:01 +02:00 committed by GitHub
parent 8c937ebf37
commit bff9cf6923
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 130 additions and 75 deletions

View file

@ -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));