patch: fix a replication policy bug

Andy McFarland andy at
Wed Oct 3 15:11:37 UTC 2007

Class::reload_classes uses Store::get_all_classes to read the data from
the class table.  If you've got schema version 10 and above, then
get_all_classes also reads the replpolicy field.  There's a bug because
reload_classes is ignoring the replpolicy field, so it's never getting
set in the class, and we're always getting the default replpolicy when
we call repl_policy_string.

Attached patch is a single new line against r1127 that fixes this.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_repl_policy.patch
Type: text/x-patch
Size: 558 bytes
Desc: not available
Url :

More information about the mogilefs mailing list