Whamcloud - gitweb
LU-14681 obclass: fix typo of comment on job ID 67/43667/3
authorLi Xi <lixi@ddn.com>
Wed, 12 May 2021 02:21:16 +0000 (10:21 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 27 May 2021 18:18:20 +0000 (18:18 +0000)
Comments on how to get job ID are confusing because of the typo.

Test-Parameters: trivial
Signed-off-by: Li Xi <lixi@ddn.com>
Change-Id: I9d714323f106dfb76eafc8d70346409b38a9b66b
Reviewed-on: https://review.whamcloud.com/43667
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Emoly Liu <emoly@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/obdclass/jobid.c

index dc40eb9..1093f78 100644 (file)
@@ -879,14 +879,14 @@ int lustre_get_jobid(char *jobid, size_t joblen)
                /*
                 * per-process jobid wanted, either from environment or from
                 * per-session setting.
                /*
                 * per-process jobid wanted, either from environment or from
                 * per-session setting.
-                * If obd_jobid_name contains "%j" or if getting the pre-process
+                * If obd_jobid_name contains "%j" or if getting the per-process
                 * jobid directly fails, fall back to using obd_jobid_name.
                 */
                rc = -EAGAIN;
                if (!strnstr(obd_jobid_name, "%j", joblen))
                        rc = jobid_get_from_cache(jobid, joblen);
 
                 * jobid directly fails, fall back to using obd_jobid_name.
                 */
                rc = -EAGAIN;
                if (!strnstr(obd_jobid_name, "%j", joblen))
                        rc = jobid_get_from_cache(jobid, joblen);
 
-               /* fall back to jobid_node if jobid_var not available */
+               /* fall back to jobid_name if jobid_var not available */
                if (rc < 0) {
                        int rc2 = jobid_interpret_string(obd_jobid_name,
                                                         jobid, joblen);
                if (rc < 0) {
                        int rc2 = jobid_interpret_string(obd_jobid_name,
                                                         jobid, joblen);