store: wrap create_class in a transaction to avoid races
commitd92e2a1f9af77c5592aa3be79e73b8ae71a7fd8a
authorEric Wong <normalperson@yhbt.net>
Fri, 18 Jan 2013 23:51:00 +0000 (18 23:51 +0000)
committerEric Wong <normalperson@yhbt.net>
Fri, 18 Jan 2013 23:53:06 +0000 (18 23:53 +0000)
tree0e2e1f3b3c4d7e183cf8dafc8b81476846ce281a
parent857f2cdaea80c100803e5173337b8dfb183ec1f7
store: wrap create_class in a transaction to avoid races

Race conditions in create_class are unlikely to be a problem
in normal usage, but this will discourage code duplication
which can lead to maintainability issues.
lib/MogileFS/Store.pm