Compare commits

..

14 Commits

Author SHA1 Message Date
Vitaliy Filippov aeb2b9cc3f Return error on failed shrink
Test / test_move_reappear (push) Has been skipped Details
Test / test_rm (push) Has been skipped Details
Test / test_snapshot_chain (push) Has been skipped Details
Test / test_snapshot_chain_ec (push) Has been skipped Details
Test / test_snapshot_down (push) Has been skipped Details
Test / test_snapshot_down_ec (push) Has been skipped Details
Test / test_splitbrain (push) Has been skipped Details
Test / test_rebalance_verify (push) Has been skipped Details
Test / test_rebalance_verify_imm (push) Has been skipped Details
Test / test_rebalance_verify_ec (push) Has been skipped Details
Test / test_rebalance_verify_ec_imm (push) Has been skipped Details
Test / test_switch_primary (push) Has been skipped Details
Test / test_write (push) Has been skipped Details
Test / test_write_xor (push) Has been skipped Details
Test / test_write_no_same (push) Has been skipped Details
Test / test_heal_pg_size_2 (push) Has been skipped Details
Test / test_heal_ec (push) Has been skipped Details
Test / test_heal_csum_32k_dmj (push) Has been skipped Details
Test / test_heal_csum_32k_dj (push) Has been skipped Details
Test / test_heal_csum_32k (push) Has been skipped Details
Test / test_heal_csum_4k_dmj (push) Has been skipped Details
Test / test_heal_csum_4k_dj (push) Has been skipped Details
Test / test_heal_csum_4k (push) Has been skipped Details
Test / test_scrub (push) Has been skipped Details
Test / test_scrub_zero_osd_2 (push) Has been skipped Details
Test / test_scrub_xor (push) Has been skipped Details
Test / test_scrub_pg_size_3 (push) Has been skipped Details
Test / test_scrub_pg_size_6_pg_minsize_4_osd_count_6_ec (push) Has been skipped Details
Test / test_scrub_ec (push) Has been skipped Details
Test / test_nfs (push) Has been skipped Details
2024-03-07 19:13:24 +03:00
Vitaliy Filippov 4afb144997 Implement rename over an existing file/directory 2024-03-07 19:13:24 +03:00
Vitaliy Filippov 20bdfd94d4 Support --logfile in nfs-proxy 2024-03-07 19:13:24 +03:00
Vitaliy Filippov 1a9ceb931b Fix shared file overlap, add FIXMEs 2024-03-07 19:13:24 +03:00
Vitaliy Filippov 97724233f9 Create inode, then direntry, not direntry, then inode; retry ID collisions 2024-03-07 19:13:24 +03:00
Vitaliy Filippov f9ab67921f Fix NFS shared/aligned write FIXMEs 2024-03-07 19:13:24 +03:00
Vitaliy Filippov a182f5d4a5 Allow to disable per-inode stats for VitastorFS pools 2024-03-07 19:13:24 +03:00
Vitaliy Filippov 0314c94c85 Add basic NFS tests, fix bugs 2024-03-07 19:13:24 +03:00
Vitaliy Filippov b2b1088977 Return block NFS implementation back as an option too 2024-03-07 19:13:24 +03:00
Vitaliy Filippov 43b57ba886 Move KV FS header into a separate file 2024-03-07 19:13:24 +03:00
Vitaliy Filippov 665ebf955c Implement packing small files into shared inodes 2024-03-07 19:13:24 +03:00
Vitaliy Filippov 1e5c632d8b Split new NFS proxy implementation into multiple files 2024-03-07 19:13:24 +03:00
Vitaliy Filippov aedb4d5bfc WIP VitastorFS with metadata storage in VitastorKV 2024-03-07 19:13:24 +03:00
Vitaliy Filippov 7a55d59266 Fix vitastor-kv hang on reopen & unfinished closed listing
Test / test_minsize_1 (push) Has been cancelled Details
Test / test_move_reappear (push) Has been cancelled Details
Test / test_rm (push) Has been cancelled Details
Test / test_snapshot_chain (push) Has been cancelled Details
Test / test_snapshot_chain_ec (push) Has been cancelled Details
Test / test_snapshot_down (push) Has been cancelled Details
Test / test_snapshot_down_ec (push) Has been cancelled Details
Test / test_splitbrain (push) Has been cancelled Details
Test / test_rebalance_verify (push) Has been cancelled Details
Test / test_rebalance_verify_imm (push) Has been cancelled Details
Test / test_rebalance_verify_ec (push) Has been cancelled Details
Test / test_rebalance_verify_ec_imm (push) Has been cancelled Details
Test / test_switch_primary (push) Has been cancelled Details
Test / test_write (push) Has been cancelled Details
Test / test_write_xor (push) Has been cancelled Details
Test / test_write_no_same (push) Has been cancelled Details
Test / test_heal_pg_size_2 (push) Has been cancelled Details
Test / test_heal_ec (push) Has been cancelled Details
Test / test_heal_csum_32k_dmj (push) Has been cancelled Details
Test / test_heal_csum_32k_dj (push) Has been cancelled Details
Test / test_heal_csum_32k (push) Has been cancelled Details
Test / test_heal_csum_4k_dmj (push) Has been cancelled Details
Test / test_heal_csum_4k_dj (push) Has been cancelled Details
Test / test_heal_csum_4k (push) Has been cancelled Details
Test / test_scrub (push) Has been cancelled Details
Test / test_scrub_zero_osd_2 (push) Has been cancelled Details
Test / test_scrub_xor (push) Has been cancelled Details
Test / test_scrub_pg_size_3 (push) Has been cancelled Details
Test / test_scrub_pg_size_6_pg_minsize_4_osd_count_6_ec (push) Has been cancelled Details
Test / test_scrub_ec (push) Has been cancelled Details
2024-03-07 19:13:24 +03:00
1 changed files with 5 additions and 10 deletions

View File

@ -197,7 +197,6 @@ struct kv_op_t
void exec(); void exec();
void next(); // for list void next(); // for list
~kv_op_t();
protected: protected:
int recheck_policy = KV_RECHECK_LEAF; int recheck_policy = KV_RECHECK_LEAF;
bool started = false; bool started = false;
@ -986,15 +985,6 @@ void kv_op_t::exec()
finish(-ENOSYS); finish(-ENOSYS);
} }
kv_op_t::~kv_op_t()
{
if (started && !done)
{
done = true;
db->active_ops--;
}
}
void kv_op_t::finish(int res) void kv_op_t::finish(int res)
{ {
auto db = this->db; auto db = this->db;
@ -2050,5 +2040,10 @@ void kv_dbw_t::list_next(void *handle, std::function<void(int res, const std::st
void kv_dbw_t::list_close(void *handle) void kv_dbw_t::list_close(void *handle)
{ {
kv_op_t *op = (kv_op_t*)handle; kv_op_t *op = (kv_op_t*)handle;
if (op->started && !op->done)
{
op->done = true;
op->db->active_ops--;
}
delete op; delete op;
} }