[vcs-log] messages version also should depend on VcsLogStorage version, since it...
authorJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Thu, 13 Oct 2016 19:30:54 +0000 (22:30 +0300)
committerJulia Beliaeva <Julia.Beliaeva@jetbrains.com>
Thu, 10 Nov 2016 17:12:25 +0000 (20:12 +0300)
platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPersistentIndex.java

index c4dbc8351e65bd84b2c717b023d14090629799bb..116fc8168c6336f1d4217278dc58e1e8ce36c34d 100644 (file)
@@ -378,7 +378,7 @@ public class VcsLogPersistentIndex implements VcsLogIndex, Disposable {
         commits = new PersistentSetImpl<>(commitsStorage, EnumeratorIntegerDescriptor.INSTANCE, Page.PAGE_SIZE, null, version);
         Disposer.register(disposable, () -> catchAndWarn(commits::close));
 
-        File messagesStorage = getStorageFile(INDEX, MESSAGES, logId, MESSAGES_VERSION, true);
+        File messagesStorage = getStorageFile(INDEX, MESSAGES, logId, VcsLogStorageImpl.VERSION + MESSAGES_VERSION, true);
         messages = new PersistentHashMap<>(messagesStorage, new IntInlineKeyDescriptor(), EnumeratorStringDescriptor.INSTANCE,
                                            Page.PAGE_SIZE);
         Disposer.register(disposable, () -> catchAndWarn(messages::close));