----------------------------------------------------------------------------------------------------------------------------

Upgrade old file storages

Ofcourse all effort is put into keeping new versions of the file system downwards compatible, but sometimes its impossible. Therefore since version 1.3 we introduced a more strict versioning validation. When a more up to date version of NFileStorage is used to communicate to a file storage that was created by an older version, an upgrade has to be made, as the following exception shows:

H:\CLI>FileStorageCmd.exe defrag original defragged mytable mycolumn
An error occured; Version 1.2 conflict (file has minor version number 2, the code expects minor version 3). Please upgrade the container using the command tool;
 filestoragecmd upgrade old new

Upgrading the FileStorage is easy with the CLI:

H:\Proj\CodePlex\NFileStorage\FileStorageCmd\bin\Debug>filestoragecmd upgrade old new
. 4 (4 files/sec, 00:00:00 mins) Reading indexes....................................................
.
/ 4 (4 files/sec, 00:00:00 mins) Writing............................................................
File storage upgrade finished
This operation took 3327 msecs

Note that the old filestorage will not be touched; we only derive a new one. Its recommended to keep your originals, just in case unknown compatibility issues might pop up).

----------------------------------------------------------------------------------------------------------------------------

Last edited May 30, 2009 at 11:25 AM by barkgj, version 4

Comments

No comments yet.