Github user paul-guo- commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/1243#discussion_r117420455
  
    --- Diff: src/backend/executor/nodeShareInputScan.c ---
    @@ -666,6 +719,36 @@ static int retry_write(int fd, char *buf, int wsize)
        return 0;
     }
     
    +
    +
    +/*
    + * mk_tmp_file_name
    + *
    + * Called by reader or writer to make the unique tmp file name.
    + */
    +void mk_tmp_file_name(char* p, int size, int share_id, const char* name)
    +{
    +    time_t t;
    +    int now, random_num;
    +    t = time(NULL);
    +    now = time(&t);
    +   srand(time(NULL));
    +    random_num = rand();
    --- End diff --
    
    It seems that there is no need of random so far.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to