Commit ID 83de1af090b933d84fa8b6a8adbef25e06348adf
|
|
Contributor: | Peter Odding | Files Modified: | 1 |
| Date: | 28-May-2010 at 07:16 | Lines Added: | 22 | |
| Repository: | git://github.com/xolox/dedupfs.git master | Lines Removed: | 31 | |
| Commit Comment: | Improved flexibility of SQLite database initialization Previously if the SQLite database file didn't exist yet it would be initialized for first use, otherwise the database was presumed to already be properly initialized. This approach made it impossible to use DedupFS with for example Python's tempfile.mkstemp() function. I've now changed the file system's SQL initialization code to always run and I've added IF NOT EXISTS and OR IGNORE clauses so that the initialization code is ignored after the first run. This shouldn't take more than a second or so on each initialization but it makes the code more robust. |
|||
| Language | Code Added | Code Removed | Comments Added | Comment Removed | Blanks Added | Blanks Removed | |
|---|---|---|---|---|---|---|---|
| Python | 2 | 10 | 20 | 21 | 0 | 0 | |
| File | Language | Code Added | Code Removed | Comments Added | Comment Removed | Blanks Added | Blanks Removed |
|---|---|---|---|---|---|---|---|
| dedupfs.py | Python | 2 | 10 | 20 | 21 | 0 | 0 |
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.