Skip to contentSkip to conversation

stor_obj_test

DISCUSSION Jeff Garzik 2 participants 2 messages Jul 7, 2010 – Aug 16, 2010

lore
Share & tools
lore
#0 lore raw

This function seems to be missing the "meat." It retrieves then disposes of a keylist.

bool stor_obj_test(struct open_chunk *cep, uint64_t key)

{
        struct st_keylist *klist;

        if (!cep->stc)
                return false;

        klist = stc_keys(cep->stc);
        if (!klist)
                return false;
        stc_free_keylist(klist);
        return true;
}
#1 lore raw
Quoted 4 lines · On Wed, 07 Jul 2010 00:02:02 -0400 Jeff Garzik <[email protected]> wrote:

This function seems to be missing the "meat." It retrieves then disposes of a keylist.

bool stor_obj_test(struct open_chunk *cep, uint64_t key)

I do not understand what kind of meat you expect stor_obj_test to have. In the filesystem backend this was a stat() that verified if the just-stored object existed and that was it.

-- Pete