Skip to content

Conversation

@mkaruza
Copy link
Contributor

@mkaruza mkaruza commented Apr 16, 2025

When extracting DensePtr from LinkObject we need to transfer TTL flag before this DensePtr is assigned.

Fixes #3915

BorysTheDev
BorysTheDev previously approved these changes Apr 16, 2025
EXPECT_THAT(Run({"saddex", "key", "KEEPTTL", "2"}), ErrArg("wrong number of arguments"));
}

TEST_F(SetFamilyTest, CheckSetLinkExpiryTransfer) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add an equivalent test in src/core/string_set_test.cc, @mkaruza ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

When extracting DensePtr from LinkObject we need to transfer TTL flag
before this DensePtr is assigned.

Fixes #3915

Signed-off-by: mkaruza <mario@dragonflydb.io>
@mkaruza mkaruza merged commit 770a926 into main Apr 17, 2025
10 checks passed
@mkaruza mkaruza deleted the mkaruza/github#3915 branch April 17, 2025 08:55
romange pushed a commit that referenced this pull request Apr 17, 2025
…4947)

fix(set_family): Transfer TTL flag from link to object in delete

When extracting DensePtr from LinkObject we need to transfer TTL flag
before this DensePtr is assigned.

Fixes #3915

Signed-off-by: mkaruza <mario@dragonflydb.io>
romange pushed a commit that referenced this pull request Apr 17, 2025
…4947)

fix(set_family): Transfer TTL flag from link to object in delete

When extracting DensePtr from LinkObject we need to transfer TTL flag
before this DensePtr is assigned.

Fixes #3915

Signed-off-by: mkaruza <mario@dragonflydb.io>
kostasrim pushed a commit that referenced this pull request Apr 22, 2025
…4947)

fix(set_family): Transfer TTL flag from link to object in delete

When extracting DensePtr from LinkObject we need to transfer TTL flag
before this DensePtr is assigned.

Fixes #3915

Signed-off-by: mkaruza <mario@dragonflydb.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SADDEX is broken

5 participants