Skip to content

Commit

Permalink
Merge pull request #2 from NakulManchanda/dsedit#498_rev2
Browse files Browse the repository at this point in the history
Dsedit#498 rev2
  • Loading branch information
NakulManchanda authored Mar 10, 2021
2 parents d5f5a75 + fbc2098 commit 308eb63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/build_zss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ if c89 \
${COMMON}/jwt/rscrypto/rs_rsclibc.c \
${COMMON}/c/scheduling.c \
${COMMON}/c/datasetlock.c \
${COMMON}/c/zssbackground.c \
${COMMON}/c/stcbackground.c \
${COMMON}/c/signalcontrol.c \
${COMMON}/c/socketmgmt.c \
${COMMON}/c/stcbase.c \
Expand Down
8 changes: 4 additions & 4 deletions c/datasetService.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,13 +296,13 @@ static void readDatasetSettings(int* heartbeat, int* expiry) {
*expiry = 0;
}
*heartbeat = jsonObjectGetNumber(datasetLockSettings, "ZSS_DATASET_HEARTBEAT");
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_INFO,"heartbeat_loop_time %d\n", *heartbeat);
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_DEBUG,"heartbeat_loop_time %d\n", *heartbeat);
*expiry = jsonObjectGetNumber(datasetLockSettings, "ZSS_DATASET_EXPIRY");
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_INFO,"heartbeat_expiry_time %d\n", *expiry);
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_DEBUG,"heartbeat_expiry_time %d\n", *expiry);
}

static int serveDatasetHeartbeat(HttpService *service, HttpResponse *response){
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_INFO, "begin %s\n", __FUNCTION__);
zowelog(NULL, LOG_COMP_ID_MVD_SERVER, ZOWE_LOG_DEBUG2, "begin %s\n", __FUNCTION__);
HttpRequest *request = response->request;
if (!strcmp(request->method, methodPOST)) {
resetTimeInHbt(request->username);
Expand Down Expand Up @@ -331,7 +331,7 @@ void installDatasetHeartbeatService(HttpServer *server) {
//initialize lock tables
initLockResources(heartbeat, expiry);
// register background handler
addZssBackgroudTask(&heartbeatBackgroundHandler,"DATASET_HEARTBEAT_TASK", lockService->heartbeat);
addStcBackgroudTask(&heartbeatBackgroundHandler,"DATASET_HEARTBEAT_TASK", lockService->heartbeat);
}

#endif /* __ZOWE_OS_ZOS */
Expand Down
10 changes: 5 additions & 5 deletions c/zss.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
#include "plugins.h"
#ifdef __ZOWE_OS_ZOS
#include "datasetjson.h"
#include "zssbackground.h"
#include "stcbackground.h"
#include "authService.h"
#include "securityService.h"
#include "zis/client.h"
Expand Down Expand Up @@ -398,15 +398,15 @@ static void initZssBackgroundTasks(HttpServer *server) {
STCBase *base = server->base;
stcRegisterModule(
base,
STC_MODULE_ZSS,
STC_MODULE_BACKGROUND,
server,
NULL,
NULL,
NULL,
processZssBackgroundHandler
processStcBackgroundHandler
);

for(int i=0; i < N_TASK_TABLE_ENTRIES; i++) {
for (int i = 0; i < N_TASK_TABLE_ENTRIES; i++) {
task_list[i].id = 0; /* initialise */
}
};
Expand Down Expand Up @@ -1075,7 +1075,7 @@ int initializeJwtKeystoreIfConfigured(JsonObject *const serverConfig,
ZOWE_LOG_SEVERE,
ZSS_LOG_JWT_KEYSTORE_NAME_MSG);
return 1;
} else if(tokenLabel == NULL){
} else if (tokenLabel == NULL){
zowelog(NULL,
LOG_COMP_ID_MVD_SERVER,
ZOWE_LOG_SEVERE,
Expand Down

0 comments on commit 308eb63

Please sign in to comment.