From: Li Xi Date: Wed, 12 May 2021 02:21:16 +0000 (+0800) Subject: LU-14681 obclass: fix typo of comment on job ID X-Git-Tag: 2.14.52~44 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;ds=inline;h=a06c5e12c536bc588ead483a701a6fe2a777d73b;p=fs%2Flustre-release.git LU-14681 obclass: fix typo of comment on job ID Comments on how to get job ID are confusing because of the typo. Test-Parameters: trivial Signed-off-by: Li Xi Change-Id: I9d714323f106dfb76eafc8d70346409b38a9b66b Reviewed-on: https://review.whamcloud.com/43667 Tested-by: jenkins Reviewed-by: Emoly Liu Reviewed-by: Yang Sheng Reviewed-by: Andreas Dilger Tested-by: Maloo --- diff --git a/lustre/obdclass/jobid.c b/lustre/obdclass/jobid.c index dc40eb9..1093f78 100644 --- a/lustre/obdclass/jobid.c +++ b/lustre/obdclass/jobid.c @@ -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. - * 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); - /* 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);