diff --git a/.gitmodules b/.gitmodules index 392e7ee1fc023..f5fd7016bbc80 100644 --- a/.gitmodules +++ b/.gitmodules @@ -74,4 +74,4 @@ url = https://github.com/open-telemetry/opentelemetry-cpp.git [submodule "src/rgw/driver/sfs/sqlite/sqlite_orm"] path = src/rgw/driver/sfs/sqlite/sqlite_orm - url = https://github.com/fnc12/sqlite_orm.git + url = https://github.com/aquarist-labs/sqlite_orm.git diff --git a/src/rgw/driver/sfs/sqlite/dbconn.h b/src/rgw/driver/sfs/sqlite/dbconn.h index 052ef2ffdc196..992240f2f251a 100644 --- a/src/rgw/driver/sfs/sqlite/dbconn.h +++ b/src/rgw/driver/sfs/sqlite/dbconn.h @@ -151,8 +151,8 @@ inline auto _make_storage(const std::string& path) { sqlite_orm::make_table( std::string(VERSIONED_OBJECTS_TABLE), sqlite_orm::make_column( - "id", &DBVersionedObject::id, sqlite_orm::autoincrement(), - sqlite_orm::primary_key() + "id", &DBVersionedObject::id, + sqlite_orm::primary_key().autoincrement() ), sqlite_orm::make_column("object_id", &DBVersionedObject::object_id), sqlite_orm::make_column("checksum", &DBVersionedObject::checksum), @@ -182,8 +182,7 @@ inline auto _make_storage(const std::string& path) { sqlite_orm::make_table( std::string(ACCESS_KEYS), sqlite_orm::make_column( - "id", &DBAccessKey::id, sqlite_orm::autoincrement(), - sqlite_orm::primary_key() + "id", &DBAccessKey::id, sqlite_orm::primary_key().autoincrement() ), sqlite_orm::make_column("access_key", &DBAccessKey::access_key), sqlite_orm::make_column("user_id", &DBAccessKey::user_id), @@ -211,8 +210,7 @@ inline auto _make_storage(const std::string& path) { sqlite_orm::make_table( std::string(MULTIPARTS_TABLE), sqlite_orm::make_column( - "id", &DBMultipart::id, sqlite_orm::primary_key(), - sqlite_orm::autoincrement() + "id", &DBMultipart::id, sqlite_orm::primary_key().autoincrement() ), sqlite_orm::make_column("bucket_id", &DBMultipart::bucket_id), sqlite_orm::make_column("upload_id", &DBMultipart::upload_id), @@ -236,8 +234,8 @@ inline auto _make_storage(const std::string& path) { sqlite_orm::make_table( std::string(MULTIPARTS_PARTS_TABLE), sqlite_orm::make_column( - "id", &DBMultipartPart::id, sqlite_orm::primary_key(), - sqlite_orm::autoincrement() + "id", &DBMultipartPart::id, + sqlite_orm::primary_key().autoincrement() ), sqlite_orm::make_column("upload_id", &DBMultipartPart::upload_id), sqlite_orm::make_column("part_num", &DBMultipartPart::part_num), diff --git a/src/rgw/driver/sfs/sqlite/sqlite_list.cc b/src/rgw/driver/sfs/sqlite/sqlite_list.cc index 0f9605ce76cff..8926d7045a22b 100644 --- a/src/rgw/driver/sfs/sqlite/sqlite_list.cc +++ b/src/rgw/driver/sfs/sqlite/sqlite_list.cc @@ -54,11 +54,11 @@ bool SQLiteList::objects( greater_than(&DBObject::name, start_after_object_name) and prefix_to_like(&DBObject::name, prefix) ), - group_by(&DBVersionedObject::object_id), - having(is_equal( - sqlite_orm::max(&DBVersionedObject::version_type), - VersionType::REGULAR - )), + group_by(&DBVersionedObject::object_id) + .having(is_equal( + sqlite_orm::max(&DBVersionedObject::version_type), + VersionType::REGULAR + )), order_by(&DBObject::name), limit(query_limit) ); ceph_assert(rows.size() <= static_cast(query_limit)); diff --git a/src/rgw/driver/sfs/sqlite/sqlite_orm b/src/rgw/driver/sfs/sqlite/sqlite_orm index fdcc1da46fbd9..e7e6d69bd40b5 160000 --- a/src/rgw/driver/sfs/sqlite/sqlite_orm +++ b/src/rgw/driver/sfs/sqlite/sqlite_orm @@ -1 +1 @@ -Subproject commit fdcc1da46fbd90feb886c0588462a62d29eb5a06 +Subproject commit e7e6d69bd40b52d10ab0fbb261d1421f70396407