Просмотр исходного кода

Document datastore file deletion behavior

Rod Hynes 10 лет назад
Родитель
Сommit
8c85ac4992
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      psiphon/config.go

+ 5 - 0
psiphon/config.go

@@ -85,6 +85,11 @@ type Config struct {
 	// DataStoreDirectory is the directory in which to store the persistent
 	// DataStoreDirectory is the directory in which to store the persistent
 	// database, which contains information such as server entries.
 	// database, which contains information such as server entries.
 	// By default, current working directory.
 	// By default, current working directory.
+	//
+	// Warning: If the datastore file, DataStoreDirectory/DATA_STORE_FILENAME,
+	// exists but fails to open for any reason (checksum error, unexpected file
+	// format, etc.) it will be deleted in order to pave a new datastore and
+	// continue running.
 	DataStoreDirectory string
 	DataStoreDirectory string
 
 
 	// DataStoreTempDirectory is the directory in which to store temporary
 	// DataStoreTempDirectory is the directory in which to store temporary