-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete exceeding versions when adding a new alias #1352
Conversation
Codecov Report
@@ Coverage Diff @@
## 4.x #1352 +/- ##
=========================================
+ Coverage 77.85% 78.6% +0.76%
=========================================
Files 300 300
Lines 55797 55857 +60
Branches 6480 6485 +5
=========================================
+ Hits 43435 43901 +466
+ Misses 12014 11950 -64
+ Partials 348 6 -342
Continue to review full report at Codecov.
|
dd3cd71
to
4f5b562
Compare
self.api.object_create(self.account, self.container, | ||
obj_name="versioned", data="content3") | ||
new_oldest_version = check_num_objects_and_get_oldest_version(3) | ||
self.assertNotEqual(oldest_version, new_oldest_version) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use self.assertLess(oldest_version, new_oldest_version)
.
deleted_beans = NULL; | ||
err = _real_delete_and_save_deleted_beans(sq3, beans, alias, | ||
header, _bean_list_cb, &deleted_beans); | ||
cb(u0, deleted_beans); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can pass cb
directly to _real_delete_and_save_deleted_beans
, don't we?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cb
loads a bean list into a list. So _real_delete_and_save_deleted_beans
creates this bean list.
4f5b562
to
b586e75
Compare
428e293
to
58bf77e
Compare
58bf77e
to
f336907
Compare
See #1163