如何禁用 RavenDB 复制?原因是我在一台服务器上有一个简单的数据库,此时我不需要任何复制。
IDocumentStore tmpStore = new DocumentStore
{
Url = url
};
tmpStore.Initialize();
tmpStore.DatabaseCommands.EnsureDatabaseExists(dbName); // WebException
如果我尝试确保已创建数据库,则会收到带有 HTTP 状态 404 的 WebException。当 RavenDB 向/docs/Raven/Replication/Destinations发出请求时发生此错误。还是我应该忽略这个例外?