Skip to content

Commit d56655a

Browse files
committed
[webapp] fix the bug that xlog data api response with offset '0' when there are not any more xlogs to retrieve.
1 parent 9998e5f commit d56655a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scouter.webapp/src/main/java/scouterx/webapp/layer/controller/XLogDataController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ public Response streamRealTimeXLog(@BeanParam @Valid final RealTimeXLogDataReque
120120
Consumer<JsonGenerator> realTimeXLogHandlerConsumer = jsonGenerator -> {
121121
try {
122122
XLogCountBucket countBucket = new XLogCountBucket();
123+
countBucket.setLoop(xLogRequest.getXLogLoop());
124+
countBucket.setIndex(xLogRequest.getXLogIndex());
125+
123126
jsonGenerator.writeArrayFieldStart("xlogs");
124127

125128
XLogLoopCache.getOf(server.getId()).getAndHandleRealTimeXLog(

0 commit comments

Comments
 (0)