Skip to content

Commit

Permalink
rgw/sfs: change column names to match ADR names
Browse files Browse the repository at this point in the history
change creation -> create, deletion -> delete in versioned objects
table.

Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
  • Loading branch information
0xavi0 committed May 17, 2023
1 parent 8c9cae7 commit 831dc47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/rgw/driver/sfs/sqlite/dbconn.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,10 @@ inline auto _make_storage(const std::string& path) {
sqlite_orm::make_column("checksum", &DBVersionedObject::checksum),
sqlite_orm::make_column("size", &DBVersionedObject::size),
sqlite_orm::make_column(
"creation_time", &DBVersionedObject::create_time
"create_time", &DBVersionedObject::create_time
),
sqlite_orm::make_column(
"deletion_time", &DBVersionedObject::delete_time
"delete_time", &DBVersionedObject::delete_time
),
sqlite_orm::make_column(
"commit_time", &DBVersionedObject::commit_time
Expand Down
4 changes: 2 additions & 2 deletions src/test/rgw/sfs/compatibility_test_cases/columns_added.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@ inline auto _make_test_storage(const std::string& path) {
sqlite_orm::make_column("checksum", &DBTestVersionedObject::checksum),
sqlite_orm::make_column("size", &DBTestVersionedObject::size),
sqlite_orm::make_column(
"creation_time", &DBTestVersionedObject::create_time
"create_time", &DBTestVersionedObject::create_time
),
sqlite_orm::make_column(
"deletion_time", &DBTestVersionedObject::delete_time
"delete_time", &DBTestVersionedObject::delete_time
),
sqlite_orm::make_column(
"commit_time", &DBTestVersionedObject::commit_time
Expand Down
4 changes: 2 additions & 2 deletions src/test/rgw/sfs/compatibility_test_cases/columns_deleted.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ inline auto _make_test_storage(const std::string& path) {
sqlite_orm::make_column("checksum", &DBTestVersionedObject::checksum),
sqlite_orm::make_column("size", &DBTestVersionedObject::size),
sqlite_orm::make_column(
"creation_time", &DBTestVersionedObject::create_time
"create_time", &DBTestVersionedObject::create_time
),
sqlite_orm::make_column(
"deletion_time", &DBTestVersionedObject::delete_time
"delete_time", &DBTestVersionedObject::delete_time
),
sqlite_orm::make_column(
"commit_time", &DBTestVersionedObject::commit_time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ inline auto _make_test_storage(const std::string& path) {
sqlite_orm::make_column("checksum", &DBTestVersionedObject::checksum),
sqlite_orm::make_column("size", &DBTestVersionedObject::size),
sqlite_orm::make_column(
"creation_time", &DBTestVersionedObject::create_time
"create_time", &DBTestVersionedObject::create_time
),
sqlite_orm::make_column(
"deletion_time", &DBTestVersionedObject::delete_time
"delete_time", &DBTestVersionedObject::delete_time
),
sqlite_orm::make_column(
"commit_time", &DBTestVersionedObject::commit_time
Expand Down

0 comments on commit 831dc47

Please sign in to comment.