[sheepdog] problems about `dog vdi object location` when node is in gateway mode

Jinzhi Chen nxtjinzhi at gmail.com
Tue Dec 9 03:21:04 CET 2014


hi,
    when a new gateway (never joined a cluster before) joins a existing
cluster (already formatted), `dog vdi object location` will cause the new
gateway exit.
    It's mainly because the new joined gateway's backend storage is not
initialized(`sd_store` is not initialized), and `dog vdi object location`
cause it using uninitialized pointer (sd_store->exist).
    maybe we could check whether a node is in gateway mode in
`local_oid_exist` function.
and if that node is gateway, just return SD_RES_NO_OBJ.


Thanks
Jinzhi Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20141209/56b7d4d6/attachment-0003.html>


More information about the sheepdog mailing list