From 1546ae9a0caa152ad757bef8d326c0a51e64e4fb Mon Sep 17 00:00:00 2001
From: Danny Auble <da@schedmd.com>
Date: Thu, 8 Nov 2012 14:14:43 -0800
Subject: [PATCH] Remove ENFORCE_QOS check since if a QOS exists we will use it
 since enforcing a QOS doesn't have anything to do with enforcing a limit if a
 QOS is used.

---
 src/slurmctld/acct_policy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/slurmctld/acct_policy.c b/src/slurmctld/acct_policy.c
index 5a9b74e12db..18cfa082e1c 100644
--- a/src/slurmctld/acct_policy.c
+++ b/src/slurmctld/acct_policy.c
@@ -160,7 +160,7 @@ static void _adjust_limit_usage(int type, struct job_record *job_ptr)
 	}
 
 	assoc_mgr_lock(&locks);
-	if (job_ptr->qos_ptr && (accounting_enforce & ACCOUNTING_ENFORCE_QOS)) {
+	if (job_ptr->qos_ptr) {
 		slurmdb_qos_rec_t *qos_ptr = NULL;
 		slurmdb_used_limits_t *used_limits = NULL;
 
-- 
GitLab