control: Fix controller CLI handling with distributed server object layer.

Object layer initialization is done lazily fix it.
This commit is contained in:
Harshavardhana
2016-08-18 14:50:50 -07:00
parent 8797952409
commit bb0466f4ce
10 changed files with 20 additions and 13 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ type HealListReply struct {
// ListObjects - list all objects that needs healing.
func (c *controllerAPIHandlers) ListObjectsHeal(arg *HealListArgs, reply *HealListReply) error {
objAPI := c.ObjectAPI
objAPI := c.ObjectAPI()
if objAPI == nil {
return errInvalidArgument
}
@@ -61,7 +61,7 @@ type HealObjectReply struct{}
// HealObject - heal the object.
func (c *controllerAPIHandlers) HealObject(arg *HealObjectArgs, reply *HealObjectReply) error {
objAPI := c.ObjectAPI
objAPI := c.ObjectAPI()
if objAPI == nil {
return errInvalidArgument
}