diff options
-rw-r--r-- | src/erasure-code/lrc/ErasureCodeLrc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/erasure-code/lrc/ErasureCodeLrc.cc b/src/erasure-code/lrc/ErasureCodeLrc.cc index 2526774c38a..77e1eb98ff9 100644 --- a/src/erasure-code/lrc/ErasureCodeLrc.cc +++ b/src/erasure-code/lrc/ErasureCodeLrc.cc @@ -324,7 +324,7 @@ int ErasureCodeLrc::parse_kml(ErasureCodeProfile &profile, } } - if ((k + m) % l) { + if (l == 0 || (k + m) % l) { *ss << "k + m must be a multiple of l in " << profile << std::endl; return ERROR_LRC_K_M_MODULO; |