[Gluster-devel] Is the macro EC_MAX_NODES error?

Feng Wang wf_cs at yahoo.com
Mon Nov 24 15:06:38 UTC 2014


Hi all,

The macro is defined in ec.c file as the following statement.

 #define EC_MAX_NODES     (EC_MAX_FRAGMENTS + ((EC_MAX_FRAGMENTS - 1) / 2))

But according to my understanding and the comments above the statement, it seems that (EC_MAX_FRAGMENTS - 1) should not be divided by 2. The number of the redundancy should be less than the number of fragment, instead of half of it.

Best Regards,
Feng Wang


More information about the Gluster-devel mailing list