Merge pull request #17766 from stack72/manta-backend-force-directory-structure
backend/manta: Add support for manta backend tiered path structure
This commit is contained in:
commit
a75e9ed9c1
|
@ -141,6 +141,7 @@ func (c *RemoteClient) Lock(info *state.LockInfo) (string, error) {
|
||||||
ContentLength: uint64(contentLength),
|
ContentLength: uint64(contentLength),
|
||||||
ObjectPath: path.Join(mantaDefaultRootStore, c.directoryName, lockFileName),
|
ObjectPath: path.Join(mantaDefaultRootStore, c.directoryName, lockFileName),
|
||||||
ObjectReader: bytes.NewReader(data),
|
ObjectReader: bytes.NewReader(data),
|
||||||
|
ForceInsert: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("[DEBUG] Creating manta state lock: %#v", params)
|
log.Printf("[DEBUG] Creating manta state lock: %#v", params)
|
||||||
|
|
Loading…
Reference in New Issue