Commit graph

14 commits

Author SHA1 Message Date
Aaron Schulz
76fc292ac8 Simplified last_modified timestamp conversion in SwiftFileBackend to just use wfTimestamp() 2012-01-22 03:25:19 +00:00
Aaron Schulz
ac536340e5 * Another fix for SwiftFileBackend file listings
* Fixed bogus array key reference in SwiftFileBackend constructor
2012-01-22 00:33:20 +00:00
Aaron Schulz
2d1d7f644b * Fixed bugs in SwiftFileBackend file listing code
* Clear container cache in SwiftFileBackend when clearCache() is called
* Updated a comment and fixed a comment typo
2012-01-22 00:06:18 +00:00
Aaron Schulz
e2e0c0d9b7 * Follow-up r109009: Check that paths are usable in FileOp::doPrecheck(). Also lock parent directories to avoid prepare()/clean() race conditions for FS backends.
* Fixed bogus $params var in logException() call in SwiftFileBackend.
* Added 'latest' param to FileBackendMultliWrite::consistencyCheck().
* Dummy-proof FileBackend::getFileStat() w.r.t the 'latest' param and removed related FileOp::allowStaleReads() comment.
* Tweaked backend-fail-batchsize message from r109469.
2012-01-19 23:18:03 +00:00
Aaron Schulz
d0fc7d5d89 Renamed 'overwriteDest' FileBackend operation parameter to just 'overwrite', which is shorter and more consistent with 'overwriteSame' 2012-01-19 02:24:49 +00:00
Aaron Schulz
2c6336063c In SwiftFileBackend:
* r108944: doCleanInternal() should delete empty containers only if the container dir was given.
* Made doSecureInternal() set container permissions. Also renamed swiftProxyUser -> swiftAnonUser.
* Made doGetFileStat() respect the 'latest' parameter (using r109235).
* Fixed connTTL default and renamed it to authTTL. Also added explicit close() call to getConnection().
* Reduced RTTs in doPrepareInternal() by checking getContainer() first (which is process cached).
* Killed an RTT in doStoreInternal(), doCreateInternal(), and doCopyInternal() by using create_object(). Also cleaned up logic with regards to the destination CF_Object object fields getting preloaded before write().
* Cleanups to getLocalCopy(); only create the tmp file if get_object() succeeds to short-circuits things.
* Made getContainer() limit the container cache size for sanity.
* Simplified doDeleteInternal() code a bit.
* Renamed $destRel => $dstRel for consistency.
2012-01-18 19:57:32 +00:00
Aaron Schulz
0fbf6e6288 * Killed an RTT in SwiftFileBackend::doStreamFile(). We already check existence in FileBackend::streamFile()
* A few minor code cleanups and comment tweaks.
2012-01-15 22:21:51 +00:00
Aaron Schulz
dbfcb63fe5 r108944: fixed bogus field...php-cloudfiles documentation misspelled this, it's 'object_count' not 'count' 2012-01-14 23:15:32 +00:00
Aaron Schulz
90525eacc4 In SwiftFileBackend:
* Added getContainer(), createContainer(), and deleteContainer() helper functions, which cache container objects to avoid RTTs
* Made doCleanInternal() delete empty containers
* Bumped authentication TTL to 120 seconds
* Some comment tweaks
2012-01-14 23:11:21 +00:00
Aaron Schulz
d49324ec7d * Fixed bogus var in LSLockManager.
* Made DBLockManager constructor a bit more convenient to use with just 'localDBMaster' in the db buckets.
* Documentation tweaks.
2012-01-14 03:16:18 +00:00
Aaron Schulz
9d49164df1 * Renamed ContainerShardListIterator -> FileBackendShardListIterator
* Renamed FSFileIterator -> FSFileBackendFileList
* Renamed SwiftFileIterator -> SwiftFileBackendFileList and added it to autoloader
* A few minor doc fixes
2012-01-14 01:52:19 +00:00
Aaron Schulz
9956408b55 * Collapse multiple directory separators in FileBackend::normalizeStoragePath(). Also renamed the function to normalizeContainerPath() to be less confusing.
* Made SwiftFileBackend respect the 'latest' parameter of various functions via "X-Newest: true" header. Added to TODO in the doGetFileStat() function, as cloudfiles needs upstream changes for that.
* Fixed SwiftFileIterator to return paths relative to the given directory.
* Clean up for FSFileBackend trailing slash handling.
2012-01-12 22:01:02 +00:00
Aaron Schulz
6a09fe4b75 * Added backend name to 'backend-fail-internal' message
* Removed TODO comment in SwiftFileBackend
2012-01-12 20:05:25 +00:00
Aaron Schulz
66e1422948 * Merged (added) SwiftFileBackend class from branch.
* Added i18n messages used by the new class.
2012-01-12 20:01:54 +00:00