Rename function that sets *default* write concern
This commit is contained in:
parent
fbd00ee151
commit
746d83459e
3 changed files with 3 additions and 3 deletions
|
|
@ -84,7 +84,7 @@
|
||||||
(def ^:dynamic *mongodb-database* db))
|
(def ^:dynamic *mongodb-database* db))
|
||||||
|
|
||||||
|
|
||||||
(defn set-write-concern!
|
(defn set-default-write-concern!
|
||||||
[wc]
|
[wc]
|
||||||
(def ^:dynamic *mongodb-write-concern* wc))
|
(def ^:dynamic *mongodb-write-concern* wc))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
|
|
||||||
(use-fixtures :each purge-people-collection purge-docs-collection purge-things-collection purge-libraries-collection)
|
(use-fixtures :each purge-people-collection purge-docs-collection purge-things-collection purge-libraries-collection)
|
||||||
|
|
||||||
(monger.core/set-write-concern! WriteConcern/SAFE)
|
(monger.core/set-default-write-concern! WriteConcern/SAFE)
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; insert
|
;; insert
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
;; Tests
|
;; Tests
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(monger.core/set-write-concern! WriteConcern/NORMAL)
|
(monger.core/set-default-write-concern! WriteConcern/NORMAL)
|
||||||
|
|
||||||
(deftest insert-large-batches-of-documents-without-object-ids
|
(deftest insert-large-batches-of-documents-without-object-ids
|
||||||
(doseq [n [1000 10000 100000]]
|
(doseq [n [1000 10000 100000]]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue