如何禁用RavenDB复制 [英] How to disable RavenDB replication
问题描述
如何禁用RavenDB复制?这其中的原因是我有一个简单的数据库一台服务器上,我不在这一点上需要的任何复制。
How do I disable RavenDB replication? The reason for that is I have a simple database on one server and I don't need any replication at this point.
IDocumentStore tmpStore = new DocumentStore
{
Url = url
};
tmpStore.Initialize();
tmpStore.DatabaseCommands.EnsureDatabaseExists(dbName); // WebException
如果我尽量确保数据库的创建我得到HTTP状态404引发WebException。当RavenDB使请求的 /文档/掠夺/复制/目的地的这个错误发生。或应我只是忽略此异常?
If I try to ensure that database was created I get a WebException with HTTP status 404. This error occurred when RavenDB makes request to /docs/Raven/Replication/Destinations. Or shall I just ignore this exception?
推荐答案
该网站的异常被抛出并在内部陷入RavenDB客户端里面。
你可以放心地继续工作,你的代码将正确执行。
The web exception is thrown and caught internally inside RavenDB Client. You can safely continue working, and your code will execute properly.
这篇关于如何禁用RavenDB复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!