11# SOME DESCRIPTIVE TITLE.
22# Copyright (C) 2011-2014, MongoDB, Inc.
33# This file is distributed under the same license as the mongodb-manual package.
4- #
4+ #
55# Translators:
66msgid ""
77msgstr ""
88"Project-Id-Version : MongoDB Manual\n "
99"Report-Msgid-Bugs-To : \n "
1010"POT-Creation-Date : 2014-04-08 13:03-0400\n "
11- "PO-Revision-Date : 2014-04-09 21:17+0000 \n "
11+ "PO-Revision-Date : 2014-10-14 17:18+0800 \n "
1212"
Last-Translator :
tychoish <[email protected] >\n "
13- "Language-Team : Chinese (http://www.transifex.com/projects/p/mongodb-manual/language/zh/)\n "
13+ "Language-Team : Chinese (http://www.transifex.com/projects/p/mongodb-manual/ "
14+ "language/zh/)\n "
1415"MIME-Version : 1.0\n "
1516"Content-Type : text/plain; charset=UTF-8\n "
1617"Content-Transfer-Encoding : 8bit\n "
1718"Language : zh\n "
1819"Plural-Forms : nplurals=1; plural=0;\n "
20+ "X-Generator : Poedit 1.6.9\n "
1921
2022# 58a94044fc9642dc86918e0536b222db
2123#: ../source/core/replica-set-write-concern.txt:3
2224msgid "Write Concern for Replica Sets"
23- msgstr ""
25+ msgstr "复制集的安全写级别 "
2426
2527# dc107f1dcfa64b15a1f7c6a46fcca06a
2628#: ../source/core/replica-set-write-concern.txt:12
2729msgid ""
28- ":term:`Sharded clusters <sharded cluster>` where the shards are also replica"
29- " sets provide the same configuration options with regards to write and read "
30+ ":term:`Sharded clusters <sharded cluster>` where the shards are also replica "
31+ "sets provide the same configuration options with regards to write and read "
3032"operations."
3133msgstr ""
34+ "分片为复制集的 :term:`分片集群 <sharded cluster>` 关于读写操作的配置选项与复"
35+ "制集一样。"
3236
3337# 418abe9093b0455fb15618581901e763
3438#: ../source/core/replica-set-write-concern.txt:55
3539msgid "Modify Default Write Concern"
36- msgstr ""
40+ msgstr "修改默认的安全写级别 "
3741
3842# f2119f94d5454df8928ccc0fbd5a9521
3943#: ../source/core/replica-set-write-concern.txt:79
@@ -43,29 +47,36 @@ msgid ""
4347"failover>`. Always ensure that your operations have specified the required "
4448"write concern for your application."
4549msgstr ""
50+ "不恰当的安全写级别可能会导致在 :ref:`复制集故障切换 <replica-set-failover>` "
51+ "过程中的数据 :ref:`回滚 <replica-set-rollbacks>` 。应用程序中也需要指定安全"
52+ "写的级别。"
4653
4754# aa1d58f6f4e045a49dc0c789ce010166
4855#: ../source/core/replica-set-write-concern.txt:84
4956msgid ""
5057":ref:`write-operations-write-concern` and :ref:`connections-write-concern`"
5158msgstr ""
59+ " :ref:`write-operations-write-concern` 和 :ref:`connections-write-concern` "
5260
5361# e7284e92c37342aab40861f6dc2496bf
5462#: ../source/core/replica-set-write-concern.txt:88
5563msgid "Custom Write Concerns"
56- msgstr ""
64+ msgstr "定制安全写级别 "
5765
5866#: ../source/core/replica-set-write-concern.txt:7
5967msgid ""
6068"From the perspective of a client application, whether a MongoDB instance is "
61- "running as a single server (i.e. \" standalone\" ) or a :term:`replica set` is"
62- " transparent. However, replica sets offer some configuration options for "
69+ "running as a single server (i.e. \" standalone\" ) or a :term:`replica set` is "
70+ "transparent. However, replica sets offer some configuration options for "
6371"write. [#sharded-clusters]_"
6472msgstr ""
73+ "无论是单个节点(i.e. \" 单节点\" ) 的还是 :term:`复制集 <replica set>` 的"
74+ "MongoDB,对于应用程序来说,都是透明的。 然而,复制集为写操作也提供了一些配置"
75+ "选项。 [#sharded-clusters]_ "
6576
6677#: ../source/core/replica-set-write-concern.txt:19
6778msgid "Verify Write Operations to Replica Sets"
68- msgstr ""
79+ msgstr "复制集写操作的审核 "
6980
7081#: ../source/core/replica-set-write-concern.txt:21
7182msgid ""
@@ -74,21 +85,24 @@ msgid ""
7485"this default write concern, such as to confirm write operations on a "
7586"specified number of the replica set members."
7687msgstr ""
88+ "复制集的在默认的 :doc:`安全写级别 </core/write-concern>` 下,仅确认数据是否写"
89+ "进了主节点。然而我们也可以修改安全写级别来确保写操作在复制集指定个数的节点中"
90+ "执行完毕。"
7791
7892#: ../source/core/replica-set-write-concern.txt:29
7993msgid ""
8094"To override the default write concern, specify a write concern with each "
8195"write operation. For example, the following method includes a write concern "
82- "that specifies that the method return only after the write propagates to the"
83- " primary and at least one secondary or the method times out after 5 seconds."
96+ "that specifies that the method return only after the write propagates to the "
97+ "primary and at least one secondary or the method times out after 5 seconds."
8498msgstr ""
8599
86100#: ../source/core/replica-set-write-concern.txt:42
87101msgid ""
88- "You can include a timeout threshold for a write concern. This prevents write"
89- " operations from blocking indefinitely if the write concern is unachievable."
90- " For example, if the write concern requires acknowledgement from 4 members "
91- "of the replica set and the replica set has only available 3 members, the "
102+ "You can include a timeout threshold for a write concern. This prevents write "
103+ "operations from blocking indefinitely if the write concern is unachievable. "
104+ "For example, if the write concern requires acknowledgement from 4 members of "
105+ "the replica set and the replica set has only available 3 members, the "
92106"operation blocks until those members become available. See :ref:`wc-"
93107"wtimeout`."
94108msgstr ""
@@ -99,9 +113,9 @@ msgstr ""
99113
100114#: ../source/core/replica-set-write-concern.txt:60
101115msgid ""
102- "You can modify the default write concern for a replica set by setting the "
103- ": data:`~local.system.replset.settings.getLastErrorDefaults` setting in the "
104- ": doc:`replica set configuration </reference/replica-configuration>`. The "
116+ "You can modify the default write concern for a replica set by setting the : "
117+ "data:`~local.system.replset.settings.getLastErrorDefaults` setting in the : "
118+ "doc:`replica set configuration </reference/replica-configuration>`. The "
105119"following sequence of commands creates a configuration that waits for the "
106120"write operation to complete on a majority of the set members before "
107121"returning:"
@@ -115,149 +129,8 @@ msgstr ""
115129
116130#: ../source/core/replica-set-write-concern.txt:90
117131msgid ""
118- "You can :doc:`tag </tutorial/configure-replica-set-tag-sets>` the members of"
119- " replica sets and use the tags to create custom write concerns. See "
120- ":doc:`/ tutorial/configure-replica-set-tag-sets` for information on "
121- "configuring custom write concerns using tag sets."
132+ "You can :doc:`tag </tutorial/configure-replica-set-tag-sets>` the members of "
133+ "replica sets and use the tags to create custom write concerns. See :doc:`/ "
134+ "tutorial/configure-replica-set-tag-sets` for information on configuring "
135+ "custom write concerns using tag sets."
122136msgstr ""
123-
124- #~ msgid ""
125- #~ "MongoDB's built-in :doc:`write concern </core/write-concern>` confirms the "
126- #~ "success of write operations to a :term:`replica set's <replica set>` "
127- #~ ":term:`primary`. Write concern uses the :dbcommand:`getLastError` command "
128- #~ "after write operations to return an object with error information or "
129- #~ "confirmation that there are no errors."
130- #~ msgstr ""
131-
132- #~ msgid ""
133- #~ "From the perspective of a client application, whether a MongoDB instance is "
134- #~ "running as a single server (i.e. \"standalone\") or a :term:`replica set` is"
135- #~ " transparent. However, replica sets offer some configuration options for "
136- #~ "write and read operations. [#sharded-clusters]_"
137- #~ msgstr ""
138-
139- #~ msgid "Verify Write Operations"
140- #~ msgstr ""
141-
142- #~ msgid ""
143- #~ "The default write concern confirms write operations only on the primary. "
144- #~ "You can configure write concern to confirm write operations to additional "
145- #~ "replica set members as well by issuing the :dbcommand:`getLastError` command"
146- #~ " with the ``w`` option."
147- #~ msgstr ""
148-
149- #~ msgid ""
150- #~ "The ``w`` option confirms that write operations have replicated to the "
151- #~ "specified number of replica set members, including the primary. You can "
152- #~ "either specify a number or specify ``majority``, which ensures the write "
153- #~ "propagates to a majority of set members."
154- #~ msgstr ""
155-
156- #~ msgid ""
157- #~ "If you specify a ``w`` value greater than the number of members that hold a "
158- #~ "copy of the data (i.e., greater than the number of non-:term:`arbiter` "
159- #~ "members), the operation blocks until those members become available. This "
160- #~ "can cause the operation to block forever. To specify a timeout threshold for"
161- #~ " the :dbcommand:`getLastError` operation, use the ``wtimeout`` argument. A "
162- #~ "``wtimeout`` value of ``0`` means that the operation will never time out."
163- #~ msgstr ""
164-
165- #~ msgid ""
166- #~ "See :ref:`getLastError Examples <gle-examples>` for example invocations."
167- #~ msgstr ""
168-
169- #~ msgid ""
170- #~ "You can configure your own \"default\" :dbcommand:`getLastError` behavior "
171- #~ "for a replica set. Use the "
172- #~ ":data:`~local.system.replset.settings.getLastErrorDefaults` setting in the "
173- #~ ":doc:`replica set configuration </reference/replica-configuration>`. The "
174- #~ "following sequence of commands creates a configuration that waits for the "
175- #~ "write operation to complete on a majority of the set members before "
176- #~ "returning:"
177- #~ msgstr ""
178-
179- #~ msgid ""
180- #~ "The :data:`~local.system.replset.settings.getLastErrorDefaults` setting "
181- #~ "affects only those :dbcommand:`getLastError` commands that have *no* other "
182- #~ "arguments."
183- #~ msgstr ""
184-
185- #~ msgid ""
186- #~ "You can use replica set tags to create custom write concerns using the "
187- #~ ":data:`~local.system.replset.settings.getLastErrorDefaults` and "
188- #~ ":data:`~local.system.replset.settings.getLastErrorModes` replica set "
189- #~ "settings."
190- #~ msgstr ""
191-
192- #~ msgid ""
193- #~ "Custom write concern modes specify the field name and a number of *distinct*"
194- #~ " values for that field. By contrast, read preferences use the value of "
195- #~ "fields in the tag document to direct read operations."
196- #~ msgstr ""
197-
198- #~ msgid ""
199- #~ "In some cases, you may be able to use the same tags for read preferences and"
200- #~ " write concerns; however, you may need to create additional tags for write "
201- #~ "concerns depending on the requirements of your application."
202- #~ msgstr ""
203-
204- #~ msgid "Single Tag Write Concerns"
205- #~ msgstr ""
206-
207- #~ msgid ""
208- #~ "Consider a five member replica set, where each member has one of the "
209- #~ "following tag sets:"
210- #~ msgstr ""
211-
212- #~ msgid ""
213- #~ "You could create a custom write concern mode that will ensure that "
214- #~ "applicable write operations will not return until members with two different"
215- #~ " values of the ``use`` tag have acknowledged the write operation. Create the"
216- #~ " mode with the following sequence of operations in the :program:`mongo` "
217- #~ "shell:"
218- #~ msgstr ""
219-
220- #~ msgid ""
221- #~ "To use this mode pass the string ``use2`` to the ``w`` option of "
222- #~ ":dbcommand:`getLastError` as follows:"
223- #~ msgstr ""
224-
225- #~ msgid "Specific Custom Write Concerns"
226- #~ msgstr ""
227-
228- #~ msgid "If you have a three member replica with the following tag sets:"
229- #~ msgstr ""
230-
231- #~ msgid ""
232- #~ "You cannot specify a custom "
233- #~ ":data:`~local.system.replset.settings.getLastErrorModes` value to ensure "
234- #~ "that the write propagates to the ``san`` before returning. However, you may "
235- #~ "implement this write concern policy by creating the following additional "
236- #~ "tags, so that the set resembles the following:"
237- #~ msgstr ""
238-
239- #~ msgid ""
240- #~ "Then, create a custom "
241- #~ ":data:`~local.system.replset.settings.getLastErrorModes` value, as follows:"
242- #~ msgstr ""
243-
244- #~ msgid ""
245- #~ "To use this mode pass the string ``san`` to the ``w`` option of "
246- #~ ":dbcommand:`getLastError` as follows:"
247- #~ msgstr ""
248-
249- #~ msgid ""
250- #~ "This operation will not return until a replica set member with the tag "
251- #~ "``disk.san`` returns."
252- #~ msgstr ""
253-
254- #~ msgid ""
255- #~ "You may set a custom write concern mode as the default write concern mode "
256- #~ "using :data:`~local.system.replset.settings.getLastErrorDefaults` replica "
257- #~ "set as in the following setting:"
258- #~ msgstr ""
259-
260- #~ msgid ""
261- #~ ":ref:`replica-set-configuration-tag-sets` for further information about "
262- #~ "replica set reconfiguration and tag sets."
263- #~ msgstr ""
0 commit comments