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
-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to