|
|
@ -103,7 +103,7 @@ func (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request) { |
|
|
|
w.WriteHeader(http.StatusNoContent) |
|
|
|
} |
|
|
|
|
|
|
|
func (fs *FilerServer) detectStorageOption(requestURI, qCollection, qReplication string, ttlSeconds int32, dataCenter, rack string) (*operation.StorageOption) { |
|
|
|
func (fs *FilerServer) detectStorageOption(requestURI, qCollection, qReplication string, ttlSeconds int32, dataCenter, rack string) *operation.StorageOption { |
|
|
|
collection := util.Nvl(qCollection, fs.option.Collection) |
|
|
|
replication := util.Nvl(qReplication, fs.option.DefaultReplication) |
|
|
|
|
|
|
@ -144,7 +144,7 @@ func (fs *FilerServer) detectStorageOption(requestURI, qCollection, qReplication |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func (fs *FilerServer) detectStorageOption0(requestURI, qCollection, qReplication string, qTtl string, dataCenter, rack string) (*operation.StorageOption) { |
|
|
|
func (fs *FilerServer) detectStorageOption0(requestURI, qCollection, qReplication string, qTtl string, dataCenter, rack string) *operation.StorageOption { |
|
|
|
|
|
|
|
ttl, err := needle.ReadTTL(qTtl) |
|
|
|
if err != nil { |
|
|
|