Skip to content

The Unified and Autonomous Development Platform

midwork

robin shen5305a2678043
diff --git a/core/src/main/java/com/gitplex/server/manager/impl/DefaultCommitInfoManager.java b/core/src/main/java/com/gitplex/server/manager/impl/DefaultCommitInfoManager.java
index dc37c78cbc..7d20015e87 100644
--- a/core/src/main/java/com/gitplex/server/manager/impl/DefaultCommitInfoManager.java
+++ b/core/src/main/java/com/gitplex/server/manager/impl/DefaultCommitInfoManager.java
@@ -956,13 +956,12 @@ public class DefaultCommitInfoManager extends AbstractEnvironmentManager impleme
else
commitCount = 1;
dailyCommitCounts.put(day, commitCount);
-
store.put(txn, key, new ArrayByteIterable(SerializationUtils.serialize(dailyCommitCounts)));
}
@SuppressWarnings("unchecked")
private HashMap<Integer, Integer> readCommitCounts(Store store, Transaction txn, ByteIterable key) {
- byte[] bytes = getBytes(store.get(txn, new IntByteIterable(0)));
+ byte[] bytes = getBytes(store.get(txn, key));
if (bytes != null)
return (HashMap<Integer, Integer>) SerializationUtils.deserialize(bytes);
else