Skip to content

Commit 50222e1

Browse files
committed
statistics tracing resultSetID
1 parent ba416a2 commit 50222e1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/firefly/js/charts/TableStatsCntlr.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ export const UPDATE_TBL_STATS = `${TBLSTATS_DATA_KEY}/UPDATE_TBL_STATS`;
3535
*/
3636
export function dispatchLoadTblStats(searchRequest, dispatcher= flux.process) {
3737
const {tbl_id} = searchRequest;
38-
// use resultSetId to determine if a call needs to be placed
39-
const resultSetId = get(flux.getState(), [TBLSTATS_DATA_KEY, tbl_id, 'resultSetId']);
40-
const resultSetIdNow = get(getTblById(tbl_id), 'tableMeta.resultSetId');
41-
if (resultSetId !== resultSetIdNow) {
38+
// use resultSetID to determine if a call needs to be placed
39+
const resultSetID = get(flux.getState(), [TBLSTATS_DATA_KEY, tbl_id, 'resultSetID']);
40+
const resultSetIDNow = get(getTblById(tbl_id), 'tableMeta.resultSetID');
41+
if (resultSetID !== resultSetIDNow) {
4242
dispatcher({type: LOAD_TBL_STATS, payload: {searchRequest}});
4343
}
4444
}
@@ -87,9 +87,9 @@ export function reducer(state=getInitState(), action={}) {
8787
const tblId = action.payload.tblId;
8888

8989
// save original table file path
90-
const resultSetId = get(getTblById(tblId), 'tableMeta.resultSetId');
90+
const resultSetID = get(getTblById(tblId), 'tableMeta.resultSetID');
9191

92-
return updateSet(state, tblId, {resultSetId, isColStatsReady: false});
92+
return updateSet(state, tblId, {resultSetID, isColStatsReady: false});
9393
}
9494
case (UPDATE_TBL_STATS) :
9595
{
@@ -162,7 +162,7 @@ function fetchTblStats(dispatch, activeTableServerRequest) {
162162
{
163163
tblId: tbl_id,
164164
isColStatsReady: true,
165-
resultSetId: undefined,
165+
resultSetID: undefined,
166166
colStats: undefined
167167
}));
168168
}

0 commit comments

Comments
 (0)