dbushenko/lein-noir-gen — pull request #2 by mcmt (2012-02-04 20:02:40+00:00)
Title: Rewrite next-id to use result from fetch-and-modify directly.

Calling fetch-and-modify then fetch makes it a non-atomic operation. By setting :return-new? to true, if the document keyed by :name doesn't already exist, it will be created and initialized with the value in :$inc.