* stor_obj_test
@ 2010-07-07 4:02 Jeff Garzik
2010-08-16 16:50 ` stor_obj_test Pete Zaitcev
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Garzik @ 2010-07-07 4:02 UTC (permalink / raw)
To: Pete Zaitcev; +Cc: Project Hail
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;
}
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: stor_obj_test
2010-07-07 4:02 stor_obj_test Jeff Garzik
@ 2010-08-16 16:50 ` Pete Zaitcev
0 siblings, 0 replies; 2+ messages in thread
From: Pete Zaitcev @ 2010-08-16 16:50 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Project Hail
On Wed, 07 Jul 2010 00:02:02 -0400
Jeff Garzik <jeff@garzik.org> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-16 16:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-07 4:02 stor_obj_test Jeff Garzik
2010-08-16 16:50 ` stor_obj_test Pete Zaitcev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.