diff --git a/src/rgw/driver/sfs/sqlite/sqlite_multipart.cc b/src/rgw/driver/sfs/sqlite/sqlite_multipart.cc index 0804733378aa1..25d0498600ded 100644 --- a/src/rgw/driver/sfs/sqlite/sqlite_multipart.cc +++ b/src/rgw/driver/sfs/sqlite/sqlite_multipart.cc @@ -37,9 +37,10 @@ std::optional> SQLiteMultipart::list_multiparts( ) const { auto storage = conn->get_storage(); - auto bucket_entries = storage->get_all( - where(is_equal(&DBBucket::bucket_name, bucket_name)) - ); + auto bucket_entries = storage->get_all(where( + is_equal(&DBBucket::bucket_name, bucket_name) and + is_equal(&DBBucket::deleted, false) + )); if (bucket_entries.size() == 0) { return std::nullopt; }