Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
17da23c562
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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(); }