Browse Source

HPCC-11070 Roxie returning incorrect value for thorlib.node()

Roxie returns 1 for thorlib.node() but hthor returns 0, and thor returns
0-based values.

For consistency with hthor and a 1-way thor, Roxie should be returning 0.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 years ago
parent
commit
17da23c562
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roxie/ccd/ccdcontext.cpp

+ 1 - 1
roxie/ccd/ccdcontext.cpp

@@ -3653,7 +3653,7 @@ public:
     virtual void deleteFile(const char * logicalName) { throwUnexpected(); }
 
     virtual unsigned getNodes() { return numChannels; }
-    virtual unsigned getNodeNum() { return 1; }
+    virtual unsigned getNodeNum() { return 0; }
     virtual char *getFilePart(const char *logicalPart, bool create=false) { UNIMPLEMENTED; }
     virtual unsigned __int64 getFileOffset(const char *logicalPart) { throwUnexpected(); }